package cn.seecoder.ai.model.po;

import cn.seecoder.ai.enums.AnalysisFunctionEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.List;

/**
 * 分析流水线
 * @author fanyanpeng
 * @date 2023/4/9 22:14
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "analysis_pipeline", schema = "seecoder_ai", catalog = "")
public class AnalysisPipeline {

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    @Column(name = "id")
    private Integer id;

    @Basic
    @Column(name = "user_id")
    private Integer userId;

    @Basic
    @Column(name = "pipeline_name")
    private String pipelineName;

    @Basic
    @Enumerated(EnumType.STRING)
    @Column(name = "analysis_function")
    private AnalysisFunctionEnum analysisFunction;

    @ElementCollection(fetch = FetchType.EAGER)
    private List<String> chosenColumns;




}
